#pragma once
#include<stdio.h>
#include<string.h>
#include<assert.h>
#include<stdlib.h>
#define MAX 1000
#define name_max 20
#define gender_max 4
#define tele_max 12 
#define address_max 50
typedef struct addressbook
{
	char name[name_max];
	char gender[gender_max];
	int age;
	char tele[tele_max];
	char address[address_max];
}book;

typedef struct count
{
	book peo[MAX];
	int num;
}count;
void Initbook(count* p);
void Printf(const count* p,int i);
void Add(count *p);
int Findname(const count* pc, char name[]);
void Del(count* p);
void Search(const count* p);
void Modify(count* p);
void Display(const count* p);
void Empty( count* p);
void Sort(count* p);
